If the exam is difficult, then just think of Allah as All Doing and consider yourself as a beggar to Him. Then before solving the paper, recite Surah Alam Nashrah 3 times.